<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html >
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理--机构列表</title>
<link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
<link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
<script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0"
	type="text/javascript"></script>
<script src="${ctxStatic}/layui/layui.all.js" type="text/javascript"></script>
<script src="${ctxStatic}/js/common.js" type="text/javascript"></script>
</head>
<body>
	<div style="width: 100%; margin-top: 10px" class="layui-form">


			<div>
				<table nostyle="true">
					<tr>
						<td style="width: 80px; text-align: right">年份：</td>
						<td style="width: 100px;"><select name="nf" id="nf">
								<option>2018</option>
								<option>2017</option>
						</select></td>
						<td style="width: 80px; text-align: right">季度：</td>
						<td>
						 <input type="radio" name="quarter" value="1" title="第一季度" checked=""> 
						 <input type="radio" name="quarter" value="2" title="第二季度">
						 <input type="radio" name="quarter" value="3" title="第三季度">
					     <input type="radio" name="quarter" value="4" title="第四季度">
						</td>
						<td style="width: 80px; text-align: right">人员：</td>
						<td>
						  <select name="userid" lay-verify="required" lay-filter="myselect">
                           <c:forEach var="item" items="${userlst}">
                            <option value="${item.userid}">${item.realname} (${item.orgname})</option>
                           </c:forEach>
                          </select>
						</td>
					</tr>

				</table>
			</div>

          

 <input type="hidden" value="0" name="pjtype">
 <!-- <input type="hidden" value="${createids }" name="createids">
			 <input type="hidden" value="${entityusertemp.templateid}" name="templateid">
			  <input type="hidden" value="${entityusertemp.userid}" name="userid">-->

	</div>
	 <div id="datacon" style="margin-top:10px">
     <iframe width="100%" height="100%" id="getdata" name="getdata" src="" style="display: block;border:0;padding:0;margin:0;overflow-x:auto;overflow-y:no " frameborder="no" border="0" marginwidth="0" marginheight="0" allowtransparency="yes"  >  
       </iframe>
     </div>

	<script>
	$("#datacon").height($(window).height()-60);
     
     
    layui.use('form', function(){
       form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
       form.on('select(myselect)', function(data){
    	   ShowIframe(data.value);
       })
	   form.render();
	});  
     
    
    function ShowIframe(userid){
    	
   	 var quarter=$('input[name="quarter"]:checked').val();
   	 var userid=userid?userid:0;
   	 var nf=$("#nf").val();
   	 
   	 //alert(quarter+" "+userid+" "+year);
   	 var url='user_usasstemp_hp_edit_show?nf='+nf+'&quarter='+quarter+'&userid='+userid;
   	 $("#getdata").attr("src",url);
   }
    
    /* function CloseDialog(result,msg){
   	  top.frames["iframe"].vUserUsAssTempHp.addresult(result,msg);
    }*/
     
    </script>
</body>
</html>